Energy storage as a service